Online documentation - Websydian v6.5 |
Severity | Medium |
---|---|
Product | Websydian |
Websydian version | 5.5 |
Resolved in | v5.6 |
Plex version | 4.0 and up |
Platform | Windows 2000 |
Category | Development |
Problem | A memory exception occurs at runtime when inheriting from PageGeneratorWithCharConversion. |
Answer | The problem lies in the function RemoveHtmlSpecialCharacters. It uses the source code RemoveHtmlSpecialCharacters which does not work in certain environments. |
Workaround |
Create a new version of the RemoveHtmlSpecialCharacters function, e.g. MyRemoveChars. MyRemoveChars must use the same source code found in RemoveHtmlSpecialCharacters, except for the following line: CString* var=& ( (CString) &(1:) ); The above line should be replaced with the following: CString* var=& ( &(1:) ); On each PageGenerator inheriting from PageGeneratorWithCharConversion, replace RemoveHtmlSpecialCharacters with MyRemoveChars. |